home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / util2 / ritm254.zip / RIGHTIME.TXT < prev    next >
Text File  |  1993-05-28  |  66KB  |  1,283 lines

  1. RighTime v2.54                                  Copyright 1991-93, GTBecker
  2. Released May 1, 1993                                    All Rights Reserved
  3.  
  4.                              Shareware Notice
  5.  
  6.      The following files are contained in the evaluation distribution file:
  7.  
  8.           RIGHTIME.COM                  TESTINCR.COM
  9.           RIGHTIME.TXT (this file)      TESTTIME.COM
  10.           RIGHTLOG.COM                  VIEWCMOS.COM
  11.           SETUPRT2.COM
  12.  
  13.      If any of these files are missing, you do not have a complete evaluation
  14. package.  A fresh distribution file of the latest version of RighTime and its
  15. associated programs and documentation is always available on the Air System
  16. Technologies BBS, 214/869-2780 (1200-14400 8N1).
  17.  
  18.      These files are the copyrighted property of G.T. Becker and Air System
  19. Technologies, Inc., of Dallas, Texas, USA.
  20.  
  21.      You may use these evaluation programs for up to one month, and you may -
  22. and are encouraged to - pass the unmodified evaluation distribution file along
  23. to others, but no one may modify, rename or sell the files or programs to
  24. anyone under any circumstances.  Although they will continue to function, the
  25. programs will notify you when the evaluation period has elapsed.
  26.  
  27.      If you choose to continue to use RighTime you must register your use. 
  28. Registered RighTime users receive a diskette containing the current version of
  29. the registered programs and additional utilities, a printed user manual and
  30. license agreement, automatic notification of new releases, and enthusiastic
  31. support from the author whenever needed.  The registered version of RighTime
  32. is functionally identical to the shareware distributed evaluation version,
  33. except that it lacks registration reminders, it is smaller in size, it can
  34. operate in a non-verbose and silent mode, and it is serial-numbered to the
  35. individual or business registrant.
  36.  
  37.      To register, fill in the form at the end of this document and send it
  38. with US $40 for each machine that is to run RighTime to Air System
  39. Technologies, Inc., 14232 Marsh Lane, Suite 339, Dallas, Texas 75234-3899,
  40. USA.
  41.  
  42.  
  43.  
  44.                        What is RighTime Version 2.5?
  45.  
  46.      RighTime is a resident real time clock correcting program for MS-DOS,
  47. PC-DOS and DRDOS running on PC/AT-class machines.  It corrects both DOS and
  48. CMOS Real Time Clock (RTC) clock rate error as large as 5.5 minutes per day,
  49. and it increases the DOS clock resolution from about 0.055 second to 0.01
  50. second.  It occupies only about 6.5K of system RAM and can normally be loaded
  51. high.  If RighTime is installed as suggested, the system clock will behave as
  52. properly and accurately as the system clock of a computer should.
  53.  
  54.      RighTime brings exceptional system time-of-day clock performance to the
  55. machine with no additional hardware.  With RighTime installed, the standard
  56. real time clock system becomes an Adaptive Mathematically Compensated Crystal-
  57. controlled Oscillator based clock.  Under stable conditions, RighTime can
  58. produce a system clock that keeps time within 0.5 second per week or better
  59. (some users have reported consistent rate accuracy of 0.07 second per week). 
  60. An error rate of 0.5 second per week is about 0.8 part per million, or more
  61. than 100 times better than an unconditioned crystal time base alone, or about
  62. 30 times better than a moderately conditioned one like a modern watch of
  63. quality.  A technical paper about CMOS RTC and DOS clock problems and
  64. RighTime's approach to solving them can be found on the BBS (RT2@PTTI.ZIP).
  65.  
  66.      RighTime Version 2.5 exhibits many new features, but retains version 1.1
  67. compatibility (except /H).  In addition to numerous invisible internal
  68. improvements, RighTime Version 2.5 sports the following changes:
  69.  
  70.      *    True 0.01 second DOS clock resolution: the 55-millisecond barrier
  71.           is broken!  The DOS clock increments in 0.01 second steps while
  72.           maintaining the standard "tick" rate.  [See /TH below.]
  73.  
  74.      *    File mode correction storage can be directed to either
  75.           RighTime.COM or to a separate data file (RighTime.COR), which will
  76.           prevent anti-virus watchdog utilities from flagging RighTime. 
  77.           [/FR, /FM]
  78.  
  79.      *    Correction storage can be directed to any valid CMOS RAM address
  80.           that is available in the machine, including extended RTC CMOS and
  81.           MCA-type (PS/2 and -SL) CMOS RAM.  [/R, /RM]
  82.  
  83.      *    Four levels of function disabling.  [/TH, /TD, /TA, /K]
  84.  
  85.      *    Disabled cool correction and improved warm correction application. 
  86.           [/D, /U, /X]
  87.  
  88.      *    Options are provided that allow learning disabling and ignoring
  89.           time and date sets.  [/L, /I]
  90.  
  91.      *    Simple but effective security makes unauthorized time sets
  92.           virtually impossible.  [/#]
  93.  
  94.      *    Automatic Daylight/Standard time change in the USA.  [/A]
  95.  
  96.      *    Fixed offset values may now range from -90.00 to +90.00 seconds. 
  97.           [/O]
  98.  
  99.      *    Logging of all time-related activity.  [/G]
  100.  
  101.      *    Highlighting of significant data and ANSI color screens.  [/Y]
  102.  
  103.      *    On screen memory-jogging help.  [/?]
  104.  
  105.      *    Silent and defeatable self test.  [/Q]
  106.  
  107.      *    Non-verbose mode (registered version only).  [/V]
  108.  
  109.      *    /W, /C and /O values may be expressed as either integers
  110.           (hundredthseconds) or as fractional seconds (i.e. /W-1234 =
  111.           /W-12.34), consistent with a new displayed data format.
  112.  
  113.      *    RighTime's status report includes duration since last time set,
  114.           duration since last applied CMOS adjustment and percentage of warm
  115.           system operation (any /F and extended CMOS /R only).
  116.  
  117.      *    Intelligent application of warm and cool corrections, weighted
  118.           observed error and distributed modification of correction values
  119.           (both warm and cool corrections will be modified based on observed
  120.           error at timeset and percentage of warm system operation) (any /F
  121.           and extended CMOS /R only).  Although the practice remains the
  122.           ideal, it is no longer necessary to set the clock immediately
  123.           after booting and just prior to shutting the system down to learn
  124.           the cool and warm corrections; you may set the time at any time,
  125.           and RighTime will do its best to adjust the corrections
  126.           appropriately.
  127.  
  128.      *    Tools are provided to visualize and verify RighTime's actions. 
  129.           [TestTime, TestIncr, RighTLog, ViewCMOS]
  130.  
  131.           +    An improved TestTime is able to resolve clock error to four
  132.                decimal places (to tenths of milliseconds), reports the DOS-
  133.                CMOS offset immediately, and displays the DOS time to
  134.                hundredths.
  135.  
  136.           +    TestIncr measures and displays the DOS clock resolution.
  137.  
  138.           +    RighTLog displays the record of all time-related activity on
  139.                the system.  It identifies the source of each timeset and
  140.                dateset by program name, making hidden timeset
  141.                troubleshooting easy.
  142.  
  143.           +    ViewCMOS can now display the first 128 bytes of MCA-type
  144.                CMOS on those machines equipped with it.
  145.  
  146.      *    SETUPRT2, a full-screen install program, eases first-time
  147.           installation and startup as well as reinstallation when changing
  148.           options.
  149.  
  150.      *    Professional TimeSet v7.1 or later (on May 1, 1993 the current
  151.           version was 7.2) by Pete Petrakis (Life Sciences Software,
  152.           Stanwood, Washington USA) can directly control several RighTime
  153.           functions and provides a RighTime status screen.  These two
  154.           programs were developed in concert and work exceptionally well
  155.           together.  TimeSet uses a modem to call any of five atomic clock
  156.           time standards (in the USA, Austria, Italy and Sweden) or a
  157.           secondary local time source (TimeGen) to set the system clock to
  158.           millisecond accuracy.  It is highly recommended.  Its shareware
  159.           evaluation file is available on the Air System Technologies BBS
  160.           and on BBSs worldwide.
  161.  
  162.  
  163.  
  164.                           What Does RighTime Do?
  165.  
  166.      First, here is what RighTime cannot do:
  167.  
  168.      -    RighTime cannot correct clock boards or computer motherboard
  169.           clocks that do not emulate the PC/AT CMOS RTC hardware clock and
  170.           its BIOS support precisely.  The large majority of current 80286-,
  171.           80386- and 80486-based machines (termed PC/AT-class) are
  172.           compatible.
  173.  
  174.      -    RighTime cannot properly correct an unstable clock; most clocks
  175.           are slow or fast and they are essentially unvarying.  If your
  176.           clock wanders aimlessly or has suddenly changed behavior, your
  177.           hardware might need repair (perhaps simple battery or CMOS RTC
  178.           module replacement).
  179.  
  180.  
  181.      RighTime exploits the better qualities of each of the two clocks in the
  182.      system and improves upon them by doing four fundamental things:
  183.  
  184.      1)   RighTime slaves the DOS system clock (which has higher resolution)
  185.           to the CMOS RTC (which has higher stability).
  186.  
  187.      2)   RighTime augments the DOS clock driver routines with its own
  188.           routines, which provide resolution in excess of 0.01 second.
  189.  
  190.      3)   RighTime monitors time set commands (and the equivalent system
  191.           calls from any program) to learn the CMOS RTC clock error rate.
  192.  
  193.      4)   RighTime improves and maintains accuracy by regularly calculating
  194.           and applying corrections or adjustments to each clock.  The DOS
  195.           clock is normally corrected every four seconds.  The CMOS RTC is
  196.           adjusted as required.
  197.  
  198.  
  199.      RighTime intrinsically sets the CMOS RTC and solves the midnight
  200.      rollover date error that exists in most DOS/BIOS combinations,
  201.      eliminating the need for other utility programs or drivers that perform
  202.      these functions.  Unlike DOS alone, the CMOS RTC seconds transition will
  203.      be properly set by RighTime and the time will be set to 0.01 second
  204.      resolution, and these qualities will survive through rebooting.  If the
  205.      machine is powered off, the clocks will be appropriately adjusted for
  206.      the off period at the next boot, and a separate correction is learned
  207.      and maintained for that period.
  208.  
  209.      Each time you set the time, RighTime will improve the accuracy of the
  210.      corrections, which will subsequently improve the accuracy of the clocks. 
  211.      It should be easy to achieve a worst-case error of less than 0.5 second
  212.      per day (usually quickly improving to less than 0.5 second per week). 
  213.      Numerous options are provided that allow fine tuning the correction
  214.      process to your system and application.
  215.  
  216.      An option [/S] is provided which assists in automatic timesetting by
  217.      directing RighTime to notify a batch file when a specified number of
  218.      days has elapsed since the last timeset or if the program's correction
  219.      capabilities have been exceeded.  This feature is available both at boot
  220.      and when RighTime is resident.
  221.  
  222.      Large time changes will not affect the corrections.  This permits
  223.      seasonal time changes; these bi-annual changes can also be automated in
  224.      the USA.
  225.  
  226.      RighTime usually runs fine with Microsoft Windows (although Windows
  227.      itself lags DOS by a second or two) and with multitaskers and DOS-based
  228.      LANs.
  229.  
  230.  
  231.  
  232.                  Knowledge Saves Time - Contraindications
  233.  
  234.      Just as with medicine that cures ills, RighTime needs to involve itself
  235. in several areas of the operating system to do its work, and there can be
  236. side-effects.  Side-effects of RighTime are usually minor and easily
  237. correctable.  Be aware of the following so you'll know what you can do if you
  238. need to.
  239.  
  240.  
  241.      *    If your system issues messages that you've never seen before
  242.           installing RighTime, or mysteriously locks up or outright crashes,
  243.           you should either increase the STACKS parameters in your
  244.           CONFIG.SYS file or replace them with STACKS=0,0.  There are no
  245.           steadfast rules, but if you currently have no STACKS statement or
  246.           if you use STACKS=9,128, first try STACKS=0,0 (unless other
  247.           software on your system requires an explicit STACK statement; in
  248.           that case, try STACKS=16,256).  Sophisticated installations might
  249.           need even more space.
  250.  
  251.      *    If Windows fails to properly load or issues suprising messages,
  252.           you might need FILES=15 in your CONFIG.SYS file.  (Even if you
  253.           have plenty of FILES in UMBs, Windows needs a minimum number in
  254.           conventional RAM).  After you make any changes to CONFIG.SYS,
  255.           reboot the machine. 
  256.  
  257.      *    Some programs (usually games) reprogram the 8254 timer-counter to
  258.           improve the video screen update rate or to produce sounds.  Since
  259.           the 8254 is part of the DOS clock mechanism, RighTime will
  260.           normally immediately correct the mode change - and slow the game. 
  261.           This protection can be relaxed without compromising the clock by
  262.           selectively disabling RighTime [usually /TD] for the duration of
  263.           the game and reenabling it afterward.
  264.  
  265.      *    Communication sessions can sometimes be disturbed by RighTime.  An
  266.           option [/M] yields automatic disabling during communication
  267.           activity on selected ports.  Don't use this option unless you find
  268.           that you must; if it is used when it is not required it can worsen
  269.           communications rather than improve them.
  270.  
  271.      *    Programs that bypass the operating system and control the hardware
  272.           directly can cause odd symptoms.  Tape backup utilities seem to be
  273.           the most common offenders, potentially causing DMA errors with
  274.           RighTime's /F options.  Most of these programs offer an option
  275.           that uses the DOS and BIOS function calls instead; use it, or
  276.           disable RighTime [/TA] for the duration of the backup.
  277.  
  278.      *    Disk defragmenters (PCCOMPRESS, SPEEDDISK, DOG, etc.) can produce
  279.           cross-linked files resulting in loss of data if RighTime is active
  280.           (with any /F option).  DOS is not aware that these utilities are
  281.           moving files around, so RighTime isn't either.  RIGHTIME (WITH ANY
  282.           /F OPTION) MUST NOT BE RUNNING [/K] WHEN DEFRAGMENTING THE DISK
  283.           DRIVE ON WHICH IT RESIDES.
  284.  
  285.      *    Some screen savers and program schedulers misfire prematurely and
  286.           some on-screen clocks run fast due to RighTime's high resolution
  287.           DOS clock mode.  Screen savers can also issue unexpected time sets
  288.           that will disturb RighTime's learning unless ignored [/I-1].  Some
  289.           programs also have difficulty when run from within a DOS window. 
  290.           Disabling the 0.01 second DOS clock mode [/TH] usually allows
  291.           these programs to coexist with RighTime.
  292.  
  293.      *    The ideal location in the AUTOEXEC.BAT for RighTime is first.  If
  294.           you want to load RighTime in high memory, be aware that the
  295.           program uses several anti-virus and anti-hacking techniques to
  296.           protect itself.  This requires a large (about 80K), but brief, use
  297.           of memory.
  298.  
  299.      In most cases, a program conflict can be resolved by temporarily
  300.      disabling RighTime.  This can be accomplished manually at the DOS
  301.      prompt, with a batch file, or via a multiple-command alias in 4DOS or
  302.      NDOS.  RighTime functions can be quickly reenabled afterward.
  303.  
  304.      Qmodem users:  Qmodem apparently issues time sets directly to the
  305.                     CMOS RTC hardware; RighTime cannot trap or prevent
  306.                     these time sets which confuse RighTime's learning and
  307.                     produce poor clock regulation.  Several attempts have
  308.                     been made to discuss this problem with MSI (the
  309.                     provider of Qmodem) but the company has not responded. 
  310.                     Until this problem is resolved, Qmodem users will need
  311.                     to decide which product they wish to use more.  If you
  312.                     want RighTime to correct your clocks well, you cannot
  313.                     use Qmodem.
  314.  
  315.  
  316.  
  317.                            Standard Installation
  318.  
  319.      RighTime is now provided with a simple installation process that will
  320. assure successful startup.  We strongly suggest that you follow this
  321. procedure.  After you have some experience with the program you can manipulate
  322. options at the command line level if you wish, but even for these changes the
  323. supplied installer program, SETUPRT2, is recommended.
  324.  
  325.      1)   If you are currently running RighTime, kill it (RighTime /K).
  326.  
  327.      2)   Make a new directory and get in it, for example:
  328.                MD \TEMP
  329.                CD \TEMP
  330.  
  331.      3)   Copy the shareware distribution file into the new directory and
  332.           unzip it.  Verify that all of the files listed above are present.
  333.  
  334.      4)   Run from a pure DOS prompt (not a shell or DOS session):
  335.                SETUPRT2
  336.  
  337.      5)   SETUPRT2 will allow you to select many options, but you can 
  338.           initially accept the defaults by simply selecting "Install"; you
  339.           can change them anytime later.
  340.  
  341.      6)   When asked to do so, set the time accurately (preferably with
  342.           TimeSet).  Then type EXIT.  Your AUTOEXEC.BAT and, if required,
  343.           CONFIG.SYS files will have a line added to them.  The existing
  344.           files will be renamed with an .RT2 extension.
  345.  
  346.      7)   You will normally be directed to reboot by pressing Ctrl-Alt-Del.
  347.  
  348.      8)   Set the time accurately for a few days, ideally immediately before
  349.           you shutdown your system for the night and immediately after
  350.           booting in the morning.  If you never shutdown your system, set
  351.           the time accurately a few times each day, well spaced.
  352.  
  353.      You should find that your system clocks rapidly become more accurate. 
  354. If they do not, check RighTLog for invisible, unexpected time sets (which will
  355. confuse RighTime's learning).  The name of the program that set the time is
  356. identified in the log.  You might be surprised to find that some programs -
  357. that have no apparent business doing so - set the clock, usually incorrectly
  358. and always disturbing RighTime.  You will need to consider an option [/I] that
  359. can deal with these rogue programs; read on.
  360.  
  361.  
  362.      You will normally not need to proceed beyond this point, but if you have
  363. trouble with the standard installation, the following sections discuss
  364. RighTime in greater detail.
  365.  
  366.  
  367.  
  368.                              Starting RighTime
  369.  
  370.      Part of the RighTime process requires storage of some correction data. 
  371. The amount of data is small and it must be stored in a place that will survive
  372. rebooting and power failures.  To use RighTime, first decide where to store
  373. the corrections.  There are two options: disk file and unused CMOS RAM.  In
  374. general, try the disk file option first if you can.  If you have a hard disk,
  375. you can use the disk file or possibly the CMOS RAM option.  If you have only
  376. floppies the disk file option is impractical, so consider the CMOS RAM option. 
  377. A diskless machine cannot use the disk option, unless it is equipped with a
  378. non-volatile RAM disk which appears to the system as any other disk would.
  379.  
  380.      The CMOS RAM option will involve some initial bravado: although only the
  381. first 52 bytes of a 64-byte CMOS RAM are defined by the original IBM PC
  382. standard (presumably leaving the last 12 bytes available), most modern BIOSs
  383. use these 12 bytes for other functions.  If you have adopted a user-specified
  384. hard disk format, for example, your specification might be stored there. 
  385. Sometimes the area is used for the power-on password in machines so equipped. 
  386. Many modern machines contain 128-byte CMOS RAM areas, and others (some PS/2
  387. models and SL-based machines) contain 256 bytes of CMOS RAM.  SETUPRT2 will
  388. only allow selection of CMOS RAM addresses that allow for the proper storage
  389. of RighTime's correction data, but there is no guarantee that the address you
  390. select is unused in your machine configuration.  You can run ViewCMOS to look
  391. at the CMOS RAM contents, but again, there is no guarantee that even a large
  392. block of zeros is free and safe to use.  Before attempting to use the CMOS RAM
  393. option, be forewarned that CMOS RAM contains system setup data that RighTime
  394. might inadvertently disturb; be prepared to reset the setup data if the CMOS
  395. RAM option is unsuccessful on your system.  If this dissuades you or if you
  396. are otherwise reluctant, use the disk file option if you can.
  397.  
  398.      If you choose the disk file option, RighTime will attempt to write to a
  399. disk file (its own program file or a separate data file) from time to time, so
  400. write access must be allowed.  If the "disk" is actually a non-volatile RAM
  401. disk card, the card must remain in the machine if this option is to work
  402. properly.  If you use the disk file option on a battery powered hard disk
  403. laptop, you might want to decrease the update frequency to allow your hard
  404. disk to spin down after periods of inactivity to increase the battery life
  405. (see the /U option, Command Line Syntax, below).  The disk file option causes
  406. RighTime to maintain an open handle to a file which will present a problem
  407. when running a file-defragmenting utility on the same disk drive that RighTime
  408. is updating, but RighTime can be killed during defragmentation and restarted
  409. afterwards (see the /K option, Killing, Disabling and Reenabling Resident
  410. RighTime, below).
  411.  
  412.      RighTime can also be configured with no correction storage, with
  413. consequential loss of some of its utility (see No Correction Storage Option,
  414. below).
  415.  
  416.      If you know how fast or slow your clock appears to run per day, you can
  417. optionally speed the learning process of RighTime by suggesting a correction
  418. to the program as a signed number in hundredths of seconds - positive for a
  419. slow clock, negative for a fast clock.  For example, if your clock runs about
  420. two minutes fast per day, the suggested correction should be -120.00 (120
  421. seconds).  There are actually two corrections that RighTime normally applies,
  422. one while the system is running and warm, and another when the system is
  423. turned off and cool.  If you know the cool correction, you can suggest it
  424. also.  If you don't know one or either correction, RighTime will determine
  425. them anyway; it'll just take a little longer for the corrections to mature to
  426. good accuracy.
  427.  
  428.      If you need to restart RighTime and it is currently resident and
  429. running, you must first kill the resident program (see Disabling and
  430. Reenabling Resident RighTime, below).  If appropriate, the corrections that
  431. RighTime has already learned can be suggested to the new program copy. 
  432.  
  433.      If you have been using another resident driver or TSR to correct the
  434. weaknesses of your clock, remove all references to it from your CONFIG.SYS and
  435. AUTOEXEC.BAT files and, once you are confident that RighTime is all it
  436. purports to be, remove the other driver or TSR from your system.
  437.  
  438.  
  439.  
  440.                              Setting the Time
  441.  
  442.      If you have access to a time standard, use it.  For best accuracy, use a
  443. telephone service time-setting program such as TimeSet.  Alternatively, you
  444. can listen to WWV, CHU or another shortwave time signal, or a radio network
  445. news broadcast, and be prepared to set your clock when you hear the beep on
  446. the minute or hour.  Don't use a radio station that is airing a call-in talk
  447. show; the audio is usually delayed six to ten seconds on such programs to
  448. allow for profanity dumping, and so the beep will be equally late.  An all-
  449. news format station is probably not delayed.  To be certain, call the radio
  450. station and ask for engineering; they will know.  Local telephone time
  451. services are usually poor; don't trust that they are correct.  What is
  452. important is accuracy.
  453.  
  454.      Do not set the time from within Microsoft Windows.  If you do, the
  455. resulting time set will be late.  This probably also applies to DESQView and
  456. other multitaskers.  Always set the time (or run the time setting program)
  457. from a pure DOS prompt.
  458.  
  459.      RighTime will monitor each time set occurrence, learning from your
  460. adjustments.  Whenever you notice or suspect that the indicated DOS system
  461. time is insufficiently correct to satisfy you, reset it accurately.  You will
  462. find that the clocks will become more and more accurate and the need for
  463. adjustment will decrease, becoming infrequent; however, you must set the time
  464. accurately at least once per month (an option is provided to assist in
  465. automating this [/S] (see Errorlevels, below).
  466.  
  467.      Allow sufficient time to elapse between time sets so that enough error
  468. exists for RighTime to use in its correction calculations; the more time that
  469. you allow, the better the correction factors that are determined.  Careless
  470. timesets will result in poor correction or even wild clock behavior; remember
  471. that you are "training" the program, so do it well.  If you are eager, four
  472. hours will probably be an adequate initial wait; of course, you can use your
  473. system as you normally would during this time.  Each time the time is set,
  474. RighTime will make appropriate adjustments to the cool and warm correction
  475. values.
  476.  
  477.  
  478.  
  479.                                 The Results
  480.  
  481.      After a few days of your diligent time setting, the corrections should
  482. settle to fairly constant numbers which will be true indications of the
  483. uncorrected performance of your CMOS RTC.  Once RighTime is installed, you can
  484. display the current corrections by simply running RighTime again at a DOS
  485. prompt (no parameters are required).  The correction values and other current
  486. status will be displayed and a functional self test will normally be
  487. performed, verifying that RighTime is currently running properly on your
  488. system.
  489.  
  490.      When running RighTime, whether at installation or when resident, the
  491. program will normally be silent.  If RighTime beeps, pay close attention to
  492. its report; it is warning you of an unusual condition or failure.  If data
  493. highlighting is not disabled [/Y0], unusual conditions or failures will be
  494. highlighted.
  495.  
  496.      As long as RighTime is in use and you've been diligent in your
  497. adjustments, and the corrections have matured, the CMOS RTC error will not be
  498. more than 0.5 second, and the DOS clock will be much more accurate than that.
  499.  
  500.      RighTime has limits of one week of inactivity, and one month between
  501. time sets, that can be corrected to a maximum of 5 minutes, 27.67 seconds per
  502. occasion; beyond that, all bets are off.  In that case, unpredictable, and
  503. probably incorrect, clock changes can occur, but RighTime will advise you of
  504. its difficulty if it can.  For example, if your clock runs two minutes slow
  505. per day and you don't use the system for three full days, when you boot up you
  506. will receive a message warning that the clock needs to be adjusted manually
  507. (or automatically; see Errorlevels, below).  The subsequent adjustment will
  508. not affect the corrections.
  509.  
  510.  
  511.  
  512.                        No Correction Storage Option
  513.  
  514.      If you have difficulty with both the CMOS RAM and disk file options or
  515. you need or wish to use neither option, RighTime can still correct the clocks
  516. for as long as the system runs continuously.  What RighTime has learned will
  517. be lost when you reboot or power down, and there can be no cool correction. 
  518. Otherwise, all of the comments above apply.  If you suggest a good warm
  519. correction and you set the clock after you boot, RighTime will serve well.
  520.  
  521.  
  522.  
  523.             Killing, Disabling and Reenabling Resident RighTime
  524.  
  525.      There will normally be few, if any, occasions that will require you to
  526. disable RighTime, but some instances exist that can only be resolved by
  527. temporarily removing RighTime from contention.  There are four levels of
  528. disabling; each level is more restrictive in what RighTime is permitted to do. 
  529. From least restriction to most, the disabling options are /TH, /TD, /TA, and
  530. /K.
  531.  
  532.      Once RighTime is resident, it can be disabled by running at a DOS
  533.      prompt:
  534.  
  535.           drv:\path\RighTime /TH   [disables 0.01 second DOS clock]
  536.                or
  537.           drv:\path\RighTime /TD   [disables DOS clock maintenance]
  538.                or
  539.           drv:\path\RighTime /TA   [disables all functions (including
  540.                                    logging)]
  541.  
  542.      Resident RighTime can then be reenabled by running:
  543.  
  544.           drv:\path\RighTime /E    [enables all functions]
  545.  
  546.      Programs that defragment or reorganize the hard disk must always be run
  547.      with no open files.  When using RighTime's disk file option [any /F], an
  548.      open handle is maintained to a file, so BEFORE RUNNING A DISK
  549.      REORGANIZING UTILITY, RighTime MUST BE KILLED.  After the utility
  550.      completes, RighTime can be restarted with the same command line used in
  551.      the AUTOEXEC.BAT file.  However, most defragmenting utilities suggest
  552.      rebooting afterward; in that case, AUTOEXEC.BAT will restart RighTime. 
  553.      This precaution is not required when using the CMOS RAM option.
  554.  
  555.      RighTime can be irreversibly disabled (or "killed") by running:
  556.  
  557.           drv:\path\RighTime /K    [entire resident program terminated]
  558.  
  559.      The /K switch will cause the function of RighTime to terminate, but the
  560.      memory that was allocated to RighTime will remain allocated and
  561.      unavailable.  If you wish, another copy of RighTime can be started with
  562.      different options; in that case, a memory map will indicate multiple
  563.      RighTime allocations, but only one will be active.
  564.  
  565.      If it is your intent to permanently remove RighTime from your system,
  566.      you can do so by killing the resident program and removing or REMing the
  567.      RighTime invocation in your AUTOEXEC.BAT.  Rebooting is not immediately
  568.      necessary.
  569.  
  570.      RighTime provides another method to temporarily disable its function in
  571.      instances where the program interferes with serial modem communication. 
  572.      An option will continually test for the presence of Data Carrier Detect
  573.      (DCD) from each specified serial port.  When DCD is active, RighTime
  574.      will be disabled similar to /TA.  Normal function will resume when DCD
  575.      becomes inactive.  Multiple ports can be specified.  If any of the
  576.      specified ports indicates DCD active, RighTime will be disabled.  This
  577.      option should not be used unless it is truly required.  This option can
  578.      worsen communications in some instances.
  579.  
  580.           To activate DCD monitoring, use the /M switch as follows:
  581.  
  582.                drv:\path\RighTime /M1   [for COM1]
  583.                     or
  584.                drv:\path\RighTime /M2   [for COM2]
  585.                     or
  586.                drv:\path\RighTime /M3   [for COM3]
  587.                     or
  588.                drv:\path\RighTime /M4   [for COM4]
  589.  
  590.           Several ports can be simultaneously monitored, for example:
  591.  
  592.                drv:\path\RighTime /M1 /M2
  593.  
  594.           DCD monitoring can be disabled with
  595.  
  596.                drv:\path\RighTime /M0
  597.  
  598.           For DCD monitoring to function properly, the active modem control
  599.           string must contain &C1 for Hayes-compatible modems.  This will
  600.           cause DCD to properly reflect the presence of carrier.  If DCD is
  601.           stuck on and a /M switch specifies that port, RighTime will never
  602.           be permitted to function.  If you run RighTime to display a status
  603.           report, the current DCD state will be reported.  It should
  604.           normally report "... DCD monitoring is enabled", not "... DCD
  605.           active; RighTime function disabled".
  606.  
  607.           Microsoft Windows users (in 386-Enhanced mode) will need to
  608.           prevent a false contention report by clicking on Control Panel,
  609.           386-Enhanced, then select Never Warn for each affected port, then
  610.           OK.
  611.  
  612.      Normally, RighTime learns from each time set.  Some programs invisibly
  613.      set the clock - in most cases for no apparently good reason - which
  614.      disturbs RighTime's learning.  If RighTime is run with logging enabled
  615.      [/G], all time and date sets will be logged, and each log entry,
  616.      displayed by running RighTLog, identifies the program name of the source
  617.      of the time or date set.  Once the sources of the offending time or date
  618.      sets are identified, RighTime can be selectively controlled to ignore
  619.      those errant sets.  There are four approaches that work equally well,
  620.      although the last of the four might be the easiest.
  621.  
  622.           1)   As when temporarily disabling RighTime in the examples
  623.                above, the offending program can be preceded by a RighTime
  624.                command which will cause the time sets to be ignored as if
  625.                the program never issued them.  If the program always issues
  626.                a pair of sets, one for the date and one for the time,
  627.                RighTime can be directed to ignore the following two sets
  628.                with
  629.  
  630.                     drv:\path\RighTime /I2   [ignore next two sets]
  631.                     OffendingProgramHere
  632.  
  633.                If the program issues only a time set, it can be ignored
  634.                with
  635.  
  636.                     drv:\path\RighTime /I1   [ignore following set]
  637.                     OffendingProgramHere
  638.  
  639.                In each case, once the specified number of sets to be
  640.                ignored has been issued by the offending program, RighTime
  641.                will resume normal function, accepting and processing time
  642.                and date sets.  If there are several offending programs,
  643.                each will need to be treated similarly.
  644.  
  645.           2)   Another method, useful if the offending program issues a
  646.                variable number of sets, is to precede the program with a
  647.                RighTime command which causes all time and date sets to be
  648.                ignored until further notice.  The program can then be
  649.                followed by a Rightime command which discontinues ignoring
  650.                time and date sets.  A small batch file might look like
  651.  
  652.                     drv:\path\RighTime /I-1  [ignore all sets]
  653.                     OffendingProgramHere
  654.                     drv:\path\RighTime /I0   [resume allowing sets]
  655.  
  656.           3)   A logical extension of that method is to issue the /I-1 in
  657.                the AUTOEXEC.BAT invocation of RighTime.  This method is the
  658.                only way to deal with time sets that are produced by a
  659.                resident module like a screen saver.  Including /I-1 in the
  660.                AUTOEXEC.BAT invocation of RighTime will cause all time and
  661.                date sets to be ignored, regardless of the source - even the
  662.                DOS prompt TIME and DATE commands - until otherwise
  663.                directed.  Legitimate time sets - like from TimeSet - can be
  664.                permitted by surrounding the TimeSet invocation with the
  665.                inverse of the commands above, i.e.
  666.  
  667.                     drv:\path\RighTime /I0   [allow sets]
  668.                     TimeSet
  669.                     drv:\path\RighTime /I-1  [resume ignoring all sets]
  670.  
  671.                TimeSet v7.10 or later, however, provides for this ability
  672.                through its RighTime Control Panel.  No additional RighTime
  673.                commands are required, but you need to remember to use the
  674.                RighTime Control Panel each time you use TimeSet to set the
  675.                time.
  676.  
  677.           4)   If you will normally be using only one program to set the
  678.                time and date, a special form of the /I switch will cause
  679.                all time and date sets except those from the specified
  680.                program to be ignored; time or date sets from the specified
  681.                program will be allowed.  For example, if you use TimeSet
  682.                and issue a /I"TimeSet" in the AUTOEXEC.BAT invocation of
  683.                RighTime, only TimeSet will be allowed to set the time or
  684.                date; all other sets will be ignored as if /I-1 had been
  685.                issued.  If you want to allow the DOS prompt TIME and DATE
  686.                commands, you must specify /I"COMMAND" since COMMAND.COM is
  687.                the setting program (if you use 4DOS, use /I"4DOS").  If a
  688.                network workstation is to be set to a server's time, the
  689.                connection processor should be named (under LANtastic, NET
  690.                CLOCK \\SERVERNAME will set the date and time to those of
  691.                SERVER; if RighTime /I"NET" is invoked, no other time sets
  692.                will be allowed).
  693.  
  694.           When combined with the /# switch, these ignore options cannot be
  695.           changed by subsequent RighTime executions.  This makes it possible
  696.           to prevent unauthorized time or date changes.  If, for example,
  697.           AUTOEXEC.BAT invokes RighTime .../I"NET"/#, logs in and sets the
  698.           time to a server, the workstation user will be unable to change
  699.           the date and time - unless he uses extraordinary means like
  700.           renaming a copy of COMMAND.COM to NET.COM to use its TIME or DATE
  701.           command.  If absolute security is required, a second RighTime
  702.           line, RighTime /I-1/#, should be issued after the time and date is
  703.           set in AUTOEXEC.BAT; in this case, the first RighTime invocation
  704.           must not express /#, since that would disallow the second RighTime
  705.           command line.
  706.  
  707.      Learning can also be disabled.  This allows for time sets that will not
  708.      affect the current corrections.  The corrections are essentially fixed
  709.      while learning is disabled.  Learning can be disabled in the
  710.      AUTOEXEC.BAT RighTime invocation and it can be temporarily controlled by
  711.      TimeSet v7.10 or later.  It cannot be disabled at any other time.  To
  712.      disable learning, add the /L0 switch to the AUTOEXEC.BAT RighTime
  713.      invocation.
  714.  
  715.      In the registered version only, an additional option is allowed:
  716.  
  717.           drv:\path\RighTime /V0   [non-verbose mode produces no screen
  718.                                    output (including errors), is completely
  719.                                    silent, and disables self-testing]
  720.  
  721.  
  722.  
  723.                                  TestTime
  724.  
  725.      Included with RighTime is a program tool that can provide some
  726. interesting insight into the relationship of the clocks in your system and the
  727. function of RighTime.  TestTime takes no command line parameters.  It will
  728. determine and express whether or not RighTime is running in the system, tests
  729. and reports on some critical modes, and it provides a continuous single line
  730. display of the clock system status.
  731.  
  732.      The status line is straightforward:
  733.  
  734.           CMOS=date:hh:mm:ss DOS=date:hh:mm:ss.hh !Appl=+0.00 Meas=+00.0000
  735.  
  736.      where:
  737.  
  738.      CMOS is the CMOS RTC clock data.  The equal sign that follows "CMOS"
  739.      will flash at a two second rate if the CMOS RTC interrupts are normal.
  740.  
  741.      DOS is the DOS system clock data, including hundredths.  The hundredths
  742.      digit might appear to be less than a blur due to your video vertical
  743.      scan rate.  It should be possible to see the difference between 0.01
  744.      second DOS clock mode and the standard 0.055 second mode [/TH].
  745.  
  746.      Appl is the current correction being applied to the DOS clock in
  747.      hundredths, if RighTime is resident.  The exclamation mark (!) before it
  748.      indicates the moment that the DOS clock is corrected.  This normally
  749.      occurs every four seconds, but can be skipped occasionally if internal
  750.      resources don't allow it.
  751.  
  752.      Meas is the signed time difference between the CMOS RTC and DOS clock in
  753.      seconds, resolved to four decimal places (tenths of milliseconds).  A
  754.      positive difference indicates that the DOS clock leads the CMOS RTC (it
  755.      displays a higher, later, advanced time).  Under normal conditions, this
  756.      value should be well within a few milliseconds (normally it is within a
  757.      few tenths of a millisecond) of the "Appl" value.  It is usually
  758.      possible to directly view the clock drift at this resolution; the
  759.      difference will increase for awhile, then suddenly revert back to a
  760.      value close to the "Appl" value each time the DOS clock is corrected.
  761.  
  762.      You can use TestTime to learn much about the behavior of the two clocks
  763. in your system.  Try running it without RighTime installed and notice that the
  764. DOS clock is never the same as the CMOS RTC.  Set the time and run TestTime
  765. again.  If your DOS sets the CMOS RTC, check to see if the seconds are
  766. synchronized, which is indicated by a Meas value of zero.  They probably are
  767. not.  Run TestTime some time later and see if the relationship between the
  768. clocks has changed; there's a good chance that it will have.  Which, if
  769. either, is correct?  Notice also that the Meas value flops around several
  770. hundredths of a second; this is due to the 0.055 second standard DOS clock
  771. resolution.  Try these things with RighTime installed and see the difference
  772. for yourself.  If RighTime is doing its job, you should see that Appl and Meas
  773. are essentially the same value - the former is the cause, and the latter is
  774. the effect.
  775.  
  776.  
  777.  
  778.                                  TestIncr
  779.  
  780.      TestIncr measures and displays the difference between one unique DOS
  781. clock time and the next.  With RighTime running normally, this value should
  782. always be 0.01 second.  Without Rightime running or when the 0.01 DOS clock
  783. mode is disabled [/TH], the value will average about 0.0549 second.  TestIncr
  784. is for disbelievers.
  785.  
  786.  
  787.  
  788.                                  ViewCMOS
  789.  
  790.      ViewCMOS displays the content of the CMOS RAM.  It can be useful to the
  791. adventurous RighTime user who is searching for an available area in which to
  792. store the corrections.  Be warned once again, though, that it is not easy to
  793. identify such a space.  Even if many zeros appear to suggest that an area is
  794. unused, remember that zero is a perfectly valid number that might be
  795. significant to the BIOS, and that, even if some space is available, the entire
  796. CMOS RAM might be checksummed.  A bad checksum will result from any changes
  797. that are not brought about by the BIOS itself, so the next boot might fail,
  798. forcing you into Setup.
  799.  
  800.      On systems that contain additional CMOS RAM that is addressed like PS/2
  801. MCA CMOS (the 386SL, for example), its presence is indicated.  The full-screen
  802. display can be switched from conventional CMOS RAM to the MCA-type CMOS RAM
  803. contents.  A message will announce that there is no MCA CMOS available if that
  804. is the case; this is not normally an error message but if you expect that your
  805. machine should have MCA-type CMOS RAM available this message could indicate a
  806. problem with your machine or its setup. 
  807.  
  808.  
  809.  
  810.                                  RighTLog
  811.  
  812.      If RighTime is run with logging enabled [/G], file RighTime.Log will be
  813. present in the directory from which RighTime is run.  RighTLog will display
  814. this binary file.  Each time-related activity will be logged.
  815.  
  816.      The most important of the log's indications is the source of each time
  817. and date set.  If a time or date set is present whose source you do not
  818. recognize, it is likely that the time is being set by a program that has no
  819. business doing so.  Some program names might contain non-displayable
  820. characters which RighTLog replaces with an underscore; these programs are more
  821. difficult to identify, but are often resident modules like screen savers. 
  822. These time and date sets will disturb RighTime's learning and can compromise
  823. the accuracy of the system clocks.  As discussed above, these errant time and
  824. date sets must be ignored with RighTime's /I switch.
  825.  
  826.      Each time set log entry also notes the percentage of time since the last
  827. timeset that the system was warm.  If this value is much smaller than you
  828. think it should be, RighTime might not have been active when you thought it
  829. should have been.  The most common cause of this is using a /M switch that
  830. monitors a communication port whose DCD is stuck active.  You might need to
  831. make &C1 a default for your Hayes-compatible modem by doing the following:
  832.  
  833.      from within a communications program (ProComm, Telix, etc.),
  834.  
  835.           Type ATZ and press Enter [you should get an OK]
  836.           Type AT&C1&W and press Enter  [you should get an OK]
  837.  
  838.      This will initialize your modem to the required DCD mode at power up
  839.      and, unless changed, each time ATZ is sent to the modem.  Communication
  840.      programs can change it, though; if you continue to have this problem,
  841.      you'll need to do some more study.
  842.  
  843.      /GA will also log each CMOS RTC adjustment.  These entries can become
  844. annoyingly numerous if the warm correction value is large.  /GA is not
  845. normally required.
  846.  
  847.      RighTLog is intended to produce a screen display.  If you try to
  848. redirect the output to a printer, you will get unexpected results.  RighTLog
  849. writes to the screen in either bottom-to-top or top-to-bottom order, so the
  850. printout could be backwards.
  851.  
  852.  
  853.  
  854.                             Command Line Syntax
  855.  
  856.      RighTime must be executed in the AUTOEXEC.BAT (or a batch file called by
  857. it) so that it becomes a resident extension of DOS.  Most of the 28 options
  858. available can be expressed at this initial resident invocation.  RighTime can
  859. also be run as a transient program at the DOS prompt to change modes or to
  860. report on its current status.  A smaller number of options are effective in
  861. the transient execution.  Each option listed below indicates when - resident
  862. or transient or both - it can be used.  The options are not case sensitive
  863. (either /f or /F will work) and space between options is not required.  There
  864. must be no space between an option switch and its associated parameter.
  865.  
  866.      RighTime  [/F[M|R]|/R[[M]n]|/N] [/Un] [/W[n]] [/C[n]] [/Dn] [/L0]
  867.                [/In] [/G[A]] [/K|/T[H|D|A]|/E] [/Mn] [/A] [/Sn] [/Yn] [/On]
  868.                [/Xn] [/Hn] [/Q] [/V0]
  869.  
  870.      Storage:  /F=File[com|cor] /R=cmosRam[[Mca]addr] /N=None /Umin=Update
  871.      Correction:    /W[Warm] /C[Cool] /Dmin=warmupDelay /L0=noLearn
  872.      State:    /Inum|"name"=Ignore /K=Kill /T=Tempdisable[Hund|Dos|All]
  873.                /E=Enable
  874.      Other:    /Mport=comport(s) /A=autoseAsonchange /Sdays=autotimeSet
  875.                /G=log[All] /Ohunds=Offset /Xhours=eXtrapweight
  876.                /V0=notVerbose /Ycolor=forceansi.Sys /Hbytes=stacklengtH
  877.                /Q=Quiet,noselftest 
  878.  
  879. where:
  880.  
  881.      /A   Automatic Daylight/Standard time change.  Implements the American
  882.           standard biannual one hour adjustments at 0200 local time on the
  883.           first April and the last October Sundays whether the machine is
  884.           running or not.  If RighTime is running, there will be no
  885.           detrimental effects caused by the time change.  If the machine is
  886.           not running, the time change will shift the time-since-last-time-
  887.           set by one hour which will, in turn, have an effect upon the next
  888.           time set's learning.  The error will normally be small and will
  889.           diminish with subsequent time sets.  The Dallas Semiconductor
  890.           DS1287 and DS12887 and Motorola's MCCS146818B1M properly implement
  891.           the time change rule as do most modern brand name chipset-based
  892.           machines, but many machines are supplied with the Motorola
  893.           MC146818P or its equivalent even today.  Although they might have
  894.           been manufactured as late as mid-1991, these parts will misbehave
  895.           in April, advancing the clock on the last Sunday (which was the
  896.           convention prior to 1986).  Some modern chipset-based machines
  897.           will not change at all.
  898.           [Applicable in resident invocation only.]
  899.  
  900.      /Cn  Sets the initial cool correction rate in seconds per day  
  901.           (default 0, maximum +327.67 or -327.68).
  902.           [Resident only]
  903.  
  904.      /Dn  Changes the cool adjust period allowance (after boot) from the 30
  905.           minute default.  The valid range is 0 to 60.  Consider this option
  906.           if your system exhibits a large difference in warm and cool
  907.           corrections and cabinet temperature is suspect, or if you need to
  908.           disable cool correction.
  909.  
  910.           /D0  Disabled cool correction.  Applies the warm correction value
  911.                at all times and learns only a warm correction value from
  912.                observed error.  This is useful to users who never shut down
  913.                their systems or who switch to and from other operating
  914.                systems that cannot run RighTime.
  915.  
  916.           [Resident only]
  917.  
  918.      /E   Reenables all temporarily disabled RighTime functions.  If /TA has
  919.           been in effect for less than the maximum period allowed (this
  920.           duration depends on the warm correction value and is displayed
  921.           when /TA is invoked) the clocks will be properly adjusted to
  922.           correct for the disabled period.
  923.           [Transient only]
  924.  
  925.      /F (or /FM)    Directs RighTime to store corrections in and retrieve 
  926.                     corrections from its own program file.
  927.  
  928.           /FR  Directs RighTime to store correction factors in
  929.                RIGHTIME.COR, a data file that will be created in RighTime's
  930.                directory.
  931.  
  932.           [Resident only]
  933.  
  934.      /G   Activity logging.  Creates and maintains a comprehensive file of
  935.           all user and program time-related activities.  It produces a
  936.           binary file, RighTime.Log, which is displayable with program
  937.           RighTLog.  This is an informative and valuable diagnostic tool.
  938.  
  939.            /GA Includes routine one-second CMOS clock adjustments.  On a
  940.                machine whose warm correction is large, these will be
  941.                frequent and will clutter the log.
  942.  
  943.           [Resident only]
  944.  
  945.      /Hn  Internal stack length.  The default is 160 bytes; valid range is
  946.           64 to 1024 bytes.  Since RighTime is an operating system
  947.           extension, its stacks might be used by other programs for brief
  948.           periods.  RighTime reports on current internal stack usage. 
  949.           Following a system crash, when RighTime is restarted it will
  950.           report on the stack usage prior to the crash (/F and extended CMOS
  951.           /R, only).  If the crash was due to insufficient stack space, this
  952.           parameter value must be increased.  There is no relationship
  953.           between this option and the STACKS command in Config.Sys.  [The /H
  954.           switch of RighTime version 1.1 (for DR DOS 5.0) is no longer
  955.           available, but a similar effect can be achieved by using /O-3.]
  956.           [Resident only]
  957.  
  958.      /In  Ignore time and date sets, semi-permanently (/I-1, restored via
  959.           /I0), for a specific count (e.g. /I2), or from all but a single
  960.           specified program (e.g. /I"TimeSet") to prevent the spurious time
  961.           and date sets of GEOS (America Online users take note), several
  962.           Norton utilities, games and other facilities from confusing
  963.           RighTime's learning and to allow time comparison without setting.
  964.  
  965.           When used with /#, system time sets can be altogether disallowed
  966.           or restricted to a specific source.  /#/I"NET", for example, would
  967.           assure that the time cannot be set from any source other than NET. 
  968.           The workstation system time could be set no other way, assuring
  969.           that the time could be not falsely set.  See /#.
  970.           [Resident or transient]
  971.  
  972.      /K   Terminates (kills) RighTime function.  The memory that is occupied
  973.           by RighTime remains allocated and unavailable.
  974.           [Transient only]
  975.  
  976.      /L0  Disables learning.  The program ignores errors at time set and
  977.           applies fixed corrections.  This is useful to programs that reset
  978.           the DOS clock and use it as an event timer.
  979.           [Resident only]
  980.  
  981.      /Mn  Directs RighTime to suspend all functions (except time and date
  982.           set and read processes) while the specified communications port
  983.           indicates that DCD (Carrier Detect) is active.  n may be any of 1
  984.           through 4, corresponding to COM1 through COM4.  This option
  985.           prevents RighTime from potentially interfering with high-speed
  986.           communications functions; it is usually only required for modem
  987.           speeds of 9600 bps and above and should only be used if it is
  988.           determined that it is required.  Normal function will resume when
  989.           communications activity ceases.  PROPER DCD CONTROL REQUIRES THAT
  990.           &C1 BE PART OF THE ACTIVE HAYES-COMPATIBLE MODEM INITIALIZATION
  991.           STRING.  Several /M switches may be specified; for example, a
  992.           system with both COM1 and COM2 high-speed modems installed would
  993.           have /M1 /M2 specified in RighTime's invocation.  /M0 disables DCD
  994.           monitoring until the next /M invocation.  Microsoft Windows might
  995.           erroneously report that a communications port is in contention
  996.           when a /M switch is used; this can be avoided by clicking on
  997.           Control Panel, then 386-Enhanced, selecting the Never Warn button
  998.           for each affected port, then OK.
  999.           [Resident or transient]
  1000.  
  1001.      /N   Disables correction storage.  Learned corrections will be lost at
  1002.           shutdown and there will be no cool correction possible.
  1003.           [Resident only]
  1004.  
  1005.      /On  Offset allows DOS clock trim in seconds.  Default is 0; the
  1006.           valid range is -90.00 to +90.00.  This can be used to anticipate
  1007.           relay and contactor actuation delays and motor start times in
  1008.           process control system applications;
  1009.           [Resident only]
  1010.  
  1011.      /Q   Defeats self testing and quiets minor status messages.
  1012.           [Resident or transient]
  1013.  
  1014.      /Rn  Directs RighTime to store corrections in CMOS RAM.
  1015.  
  1016.           /Raddr directs RighTime to store corrections in CMOS RAM.  The
  1017.           default address is 63, but it is increasingly unlikely that this
  1018.           will be a usable address; the address can range to 127.  The
  1019.           specified location is that of the last of 12 bytes for the default
  1020.           address, or the last of 22 bytes for any other location.  Using
  1021.           the default will not provide full features and is maintained for
  1022.           compatibility with earlier RighTime versions.  This option is
  1023.           potentially harmful, since a careless value might allow RighTime
  1024.           to overwrite setup data.  Inadvertently changing a hard disk type,
  1025.           for example, can lead to sadness.  Be careful.
  1026.  
  1027.           /RMaddr will place the corrections in MCA-type CMOS RAM.  There is
  1028.           no default: an address must be specified.  The specified location
  1029.           is that of the last of 22 bytes.  The valid address range is 22 to
  1030.           127 for 82360SL-type CMOS RAM and 274 to 2047 for PS/2 MCA-type
  1031.           CMOS RAM.
  1032.  
  1033.           [Resident only]
  1034.  
  1035.      /Sn  Changes the period that must elapse since the last timeset before
  1036.           RighTime will set the corresponding program termination code.  The
  1037.           termination code can be tested with the IF ERRORLEVEL command in a
  1038.           batch file.  If this switch is not expressed, the default period
  1039.           is 28 days.  If more than the specified period has elapsed since
  1040.           the last time set, RighTime will terminate with ERRORLEVEL set to
  1041.           1.
  1042.           [Resident or transient]
  1043.  
  1044.      /T   Temporarily disables RighTime functions.
  1045.  
  1046.           /TH       disables 0.01 second DOS clock maintenance.
  1047.           /TD or /T disables DOS clock maintenance.  CMOS clock
  1048.                     maintenance continues.  This mode can persist
  1049.                     indefinitely.
  1050.           /TA       disables all RighTime functions (including logging)
  1051.                     and reports the maximum allowable disabled duration. 
  1052.                     If the disabled period is expected to exceed this
  1053.                     duration, use /K instead, then restart RighTime as in
  1054.                     the AUTOEXEC.BAT invocation with /D0 to force warm
  1055.                     correction.
  1056.  
  1057.           These disabled modes can be reenabled with /E.
  1058.  
  1059.           [Resident or transient]
  1060.  
  1061.      /Un  Changes the CMOS RAM or disk file update period from the two
  1062.           minute default.  The valid range is 2 to 60, and the value must be
  1063.           even.  If you think the default is unnecessarily frequent, you can
  1064.           decrease it by increasing this value.  Remember that this is part
  1065.           of the cool correction process, and less frequency might affect
  1066.           correction accuracy in severe situations.
  1067.           [Resident only]
  1068.  
  1069.      /V0  Non-verbose.  No screen output will be generated (including error
  1070.           messages).  Available to registered users only.
  1071.           [Resident or transient]
  1072.  
  1073.      /Wn  Sets the initial warm correction rate in seconds per day  
  1074.           (default 0, maximum +327.67 or -327.68)
  1075.           [Resident only]
  1076.  
  1077.      /Xn  Sets the error extrapolation weighting threshold.  This can
  1078.           desensitize RighTime's learning by decreasing the significance of
  1079.           the observed error from any time set whose previous time set was
  1080.           less than n hours ago by a linear factor (e.g. for the 4-hour
  1081.           default, the observed error from the second of two timesets that
  1082.           are one hour apart is considered only 0.25 significant), range 1
  1083.           to 72 hours.
  1084.           [Resident only]
  1085.  
  1086.      /Yn  Forces data highlighting if a non-standard ANSI.SYS is
  1087.           undetectable or if colors other than the white-on-black default
  1088.           are desired.  n is normally a two-digit value whose first digit
  1089.           represents the background color, while the second digit determines
  1090.           the foreground color.  Standard ANSI color numbers are expected:
  1091.  
  1092.                0=Black   4=Blue
  1093.                1=Red     5=Magenta
  1094.                2=Green   6=Cyan
  1095.                3=Yellow  7=White
  1096.  
  1097.           White-on-red, for example, results from /Y17.  To force the
  1098.           default on a non-standard ANSI driver, use /Y07 or simply /Y7. 
  1099.  
  1100.           /Y0  Automatic significant data highlighting (if ANSI.SYS is
  1101.                present) is defeated with /Y0.  To produce a text file of
  1102.                RighTime's report without ANSI sequences, use /Y0,
  1103.                redirected to disk.
  1104.  
  1105.           [Resident or transient]
  1106.  
  1107.      /#   Lock RighTime command line interface.  Placed on the AUTOEXEC.BAT
  1108.           invocation, this switch will prevent any transient RighTime
  1109.           execution from having effect.  Although RighTime command lines
  1110.           will continue to be checked for validity, no action will be taken
  1111.           on any command, making it impossible to change RighTime's mode.  
  1112.  
  1113.           If /I-1 is also used in the AUTOEXEC.BAT, it will normally not be
  1114.           possible for the system time or date to be changed except via the
  1115.           system BIOS setup screen.  See /I.
  1116.           [Resident or transient]  
  1117.  
  1118.      /?   On screen help memory jogger.  This is automatically produced if
  1119.           the command line contains a syntax error.
  1120.           [Resident or transient]
  1121.  
  1122.  
  1123.  
  1124.      A sophisticated AUTOEXEC.BAT invocation of RighTime might be:
  1125.  
  1126.      C:\RT2\RighTime /G /FR /D0 /U20 /S7 /A /I"TimeSet" > C:\RT2\RIGHTIME.RPT
  1127.      IF ERRORLEVEL 255 ECHO "** Trouble with RighTime load **"
  1128.      IF ERRORLEVEL 1 TIMESET [in automatic configuration]
  1129.      .
  1130.      .
  1131.      .
  1132.      TYPE C:\RT2\RIGHTIME.RPT
  1133.  
  1134.           IF you have SHARE loaded, this TYPE statement might yield an
  1135.           "Access denied" error.  This message results from a command
  1136.           processor bug which leaves RIGHTIME.RPT open after RighTime's
  1137.           startup.  A work-around for this idiosyncracy will be posted on
  1138.           the BBS.
  1139.  
  1140.  
  1141.  
  1142.                                 Errorlevels
  1143.  
  1144.      RighTime provides four unique termination ERRORLEVELs.  The ERRORLEVEL
  1145. value can be tested in a batch file to guide subsequent operations.
  1146.  
  1147.      Code value     Indication
  1148.  
  1149.           0    Installed normally, cool correction within range, last
  1150.                timeset within specified elapsed period.
  1151.  
  1152.           1    Installed, cool correction within range, but more than the
  1153.                specified period has elapsed since a timeset.
  1154.  
  1155.           2    Installed, but cool correction was out of range (the system
  1156.                has been inactive too long), so a timeset is externally
  1157.                required.
  1158.  
  1159.          255   Not installed due to syntax error, insufficient memory,
  1160.                incompatible hardware, etc.
  1161.  
  1162.      These codes can be tested in a batch file with the IF ERRORLEVEL
  1163. command.  For example, if the ERRORLEVEL value code is 1, then more than 28
  1164. days have elapsed since the last timeset (this duration can be changed with
  1165. the /S option).  It would be wise to have a NIST telephone service time
  1166. setting program such as TimeSet automatically set the time in this situation
  1167. to prevent RighTime from exceeding its one month limit, or you could cause
  1168. execution of the system DATE and TIME commands to urge the user to set them
  1169. manually.  
  1170.  
  1171.  
  1172.  
  1173.                             If You Have Trouble
  1174.  
  1175.      Please note the symptoms and circumstances as thoroughly as is
  1176. reasonably possible and contact
  1177.  
  1178.      Tom Becker
  1179.      Air System Technologies, Inc.
  1180.      14232 Marsh Lane, Suite 339
  1181.      Dallas, Texas  75234-3899  USA
  1182.  
  1183.      BBS:      214/869-2780
  1184.      Fax:      214/869-1166
  1185.      CompuServe:   76436,3210
  1186.      Telephone:  214/402-9660
  1187.                     RighTime Software License Agreement
  1188.  
  1189. When you register, this will be the agreement between you (the user) and Air
  1190. System Technologies to which both parties are bound upon the payment and
  1191. acceptance of the license fee, which is part of the registration fee for
  1192. RighTime and its associated programs.
  1193.  
  1194. Grant of License
  1195. In consideration of the payment of each license fee by the user to Air System
  1196. Technologies, Air System Technologies will license to the user a nonexclusive
  1197. right to use one copy of each of the software programs in the RighTime package
  1198. on one computer at a time.  The license is expressly for program use only, per
  1199. the terms of the license.  No other rights are implied.
  1200.  
  1201. Ownership of Software
  1202. Air System Technologies is the owner of the software programs and holds full
  1203. title to them.  The user may own the physical media on which the software
  1204. programs are recorded, including the original disk which is provided by Air
  1205. System Technologies to the user, but the user does not own the software
  1206. programs nor any copy of the software programs.
  1207.  
  1208. Copies
  1209. The software programs and the documentation are copyrighted and therefore may
  1210. not be copied without permission.  Permission is granted to the licensed user
  1211. to make copies of the software programs and the documentation as required in
  1212. the conventional course of computer system data backup.  Permission is granted
  1213. to copy the shareware distribution file in its complete, unmodified form.  No
  1214. other permission to copy is granted.
  1215.  
  1216. Use and Transfer
  1217. The Grant of License applies only to one copy of each of the software
  1218. programs.  Simultaneously functional resident copies of the software programs
  1219. each require licensing.  You may not transfer any copy (except the shareware
  1220. evaluation distribution file) of the software programs to a computer which is
  1221. not under your control, nor may you rent, lease, sell or otherwise assign
  1222. control of the software programs to anyone.
  1223.  
  1224. Termination
  1225. The license is in effect until it is terminated.  When the license is
  1226. terminated, the user's rights that are granted by the license are revoked. 
  1227. The license is automatically terminated without notice upon violation of any
  1228. of its terms.
  1229.  
  1230. Disclaimer of Warranty
  1231. No warranty of performance or suitability is expressed or implied.  Every
  1232. effort has been made to make the software programs deliver as the
  1233. documentation describes, but the correctness for your application or
  1234. environment cannot be assured.  Air System Technologies cannot assume
  1235. responsibility for the failure of the software programs, nor for any
  1236. consequence of their use.
  1237.  
  1238. RighTime Use Registration Form             RighTime Evaluation Version 2.54
  1239.  
  1240. Fill out this form, enclose the required funds and mail to:
  1241.  
  1242.      Air System Technologies, Inc.
  1243.      14232 Marsh Lane, Suite 339
  1244.      Dallas, Texas  75234-3899  USA
  1245.  
  1246.      I would like to register the use of RighTime.
  1247.  
  1248.  
  1249.      Name: ________________________________________________________________
  1250.  
  1251.      Business name: _______________________________________________________
  1252.  
  1253.      Address: _____________________________________________________________
  1254.  
  1255.               _____________________________________________________________
  1256.  
  1257.      City:______________________________ State:_________ Zip: _____________
  1258.  
  1259.      Telephone:_________________________
  1260.  
  1261.  
  1262.      Where did you get RighTime? __________________________________________
  1263.  
  1264.      Registration is required for each copy of RighTime that is
  1265.      simultaneously machine resident.
  1266.  
  1267.      The registration fee is US$ 40.00 each up to 10 copies.  Call for larger
  1268.      quantity pricing.
  1269.  
  1270. How many copies of the RighTime package do you want?_______________________
  1271.  
  1272. On what media?  5.25"/360K______  3.5"/720K______
  1273.  
  1274.  
  1275. Total enclosed:  US$____________
  1276.  
  1277. Make your check or money order payable to Air System Technologies.
  1278.  
  1279. Does your business require an invoice?____________
  1280.  
  1281.  
  1282. Thank You!
  1283.